<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<link rel="stylesheet"
	href="js/jquery-easyui-1.4/themes/bootstrap/easyui.css" type="text/css"></link>
<link rel="stylesheet" href="js/jquery-easyui-1.4/themes/icon.css"
	type="text/css"></link>
<script type="text/javascript" src="js/jquery-easyui-1.4/jquery.min.js"></script>
<script type="text/javascript"
	src="js/jquery-easyui-1.4/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="js/jquery-easyui-1.4/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="js/admin.js"></script>
<script type="text/javascript" src="js/adminUI.js"></script>
<style type="text/css">
body {
	margin: 0px 0px;
}
</style>

</head>


<body>
	<!-- 工具栏 -->
	<div id="xtoolbar" style="background-color: #F5F5F5;">
		<div style="padding: 3px; float: left;">
			<input id="ss" class="easyui-searchbox" searcher="doSearch"
				prompt="请输入关键字" menu="#xsearchSelect" style="width: 300px"></input>
			<div id="xsearchSelect" style="width: 120px">
				<div name="realname">超级管理员名称</div>
			</div>
		</div>
		<a href="javascript:void(0)" class="easyui-linkbutton"
			iconCls="icon-edit" plain="true" onclick="doEdit()">修改密码</a>
	</div>

	<!-- 表格 -->
	<table id="xdatagrid">
	</table>

	<!-- 右击事件表格 -->
	<div id="xClickMenu" class="easyui-menu" style="width: 120px;">
		<div data-options="iconCls:'icon-edit'" onclick="doEdit()">修改密码</div>
		<div data-options="iconCls:'icon-reload'" onclick="doReload()">
			刷新</div>
	</div>

	<style type="text/css">
.ftitle {
	font-size: 14px;
	font-weight: bold;
	padding: 5px 0;
	margin-bottom: 10px;
	border-bottom: 1px solid #ccc;
}

.flabel {
	font-size: 12px;
	text-align: right;;
}
</style>



	<!-- 编辑表单 -->
	<div id="editDlg" class="easyui-dialog" style="padding:10px 20px">
		<div class="ftitle">修改超级管理员密码</div>
		<form id="editForm" method="post">
			<input type="hidden" name="id" />
			<table width="100%">
				<tr>
					<td class="flabel">旧密码:</td>
					<td class="finpur"><input type="password" name="password"
						style="width: 200px;" class="easyui-validatebox"
						validType="length[6, 20]" required="true" /></td>
				</tr>

				<tr>
					<td class="flabel">新密码:<span
						style="font-size: 12px; color:  red;">(如不修改请勿填)</span></td>
					<td class="finpur"><input type="password" name="password2"
						style="width: 200px;" class="easyui-validatebox"
						validType="length[6, 20]" required="true" />
					</td>
				</tr>
				
				<tr>
					<td class="flabel">确认新密码:<span
						style="font-size: 12px; color:  red;">(如不修改请勿填)</span></td>
					<td class="finpur"><input type="password" name="pwdRepeat"
						style="width: 200px;" class="easyui-validatebox"
						validType="length[6, 20]" required="true" />
					</td>
				</tr>
			</table>
		</form>
		<div id="editButtons">
			<a href="javascript:void(0)" class="easyui-linkbutton"
				iconCls="icon-ok" onclick="javascript:$('#editForm').submit()">保存</a>
			<a href="javascript:void(0)" class="easyui-linkbutton"
				iconCls="icon-cancel"
				onclick="javascript:$('#editDlg').dialog('close')">关闭</a>
		</div>
	</div>


</body>

<script type="text/javascript">
	var dgTitle = "管理员管理";
	var dgDeleteMsg = "确定要删除该管理员?";
	var dgBaseUrl = "superadmin/superadmin_";
	var dgDateUrl = dgBaseUrl + "list";
	var dgAddUrl = dgBaseUrl + "add"
	var dgUpdateUrl = dgBaseUrl + "update";
	var dgDeleteUrl = dgBaseUrl + "delete";
	var dgIdField = "id";
	var dgParams = {};
	var dgSortName = "name";
	var dgSortOrder = "desc";
	var dgColumns = [ [
			{
				field : 'id',
				formatter : function(value, rowData, rowIndex) {
					return " <input class='xid' type='checkbox' value='" + value +"'/>";
				}
			}, {
				title : '超级管理员名',
				field : 'name',
				sortable : false,
				resizable : true,
				width : 125
			} ] ];

	//往edit表单load数据
	function loadDialog(row) {
		$('#editForm').form('load', {
			id : row.id,
		});
		$("#editDlg").dialog('open');
	}
</script>
</html>
